/**
 * 
 */
package com.pmsco.pms.util;

/**
 * @author Long Tran
 *
 */
public class PmsEncoderFactory {
	
	public static PmsEncoder getEncoder(Integer encodeType) {
		PmsEncoder ret;
		PmsEncodeType pmsEncodeType = PmsEncodeType.getPmsEncodeType(encodeType);
		
		switch (pmsEncodeType) {
			case BASE64:
			default:
				ret = new PmsBase64Encoder();
				break;
		}
		
		return ret;
	}
}
